function Market(market) {
	var self = this;
	self.id = market.id;
	self.name = market.name;
	self.shortSubtitle = market.shortSubtitle;
	self.imageUrl = getImagePath('image/marketThumb', market.imagePath ? market.imagePath : 'defaultMarket.jpg', "medium");
	
	self.goToDetail = function() {
		redirect('market/detail/' + self.id + '/' + self.name.replaceAll(" ", "-"));
	};
};